package com.hxzy.boot.old.requestcontroller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzm
 * @create 2023-09-23 9:12
 * project_name:javaweb2308
 */
@RestController
public class RequestController06 {

    //接收路径参数  get请求会这样传   /request06/1/5

    @RequestMapping("/request06/{id}/{size}")
    public String req04(@PathVariable("id") Integer currentPage,@PathVariable Integer size){
        System.out.println("currentPage = " + currentPage);
        System.out.println("size = " + size);
        return "ok!!!";
    }

}
